package com.itljm.cxrMarket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.common.StatusCode;
import com.itljm.cxrMarket.entity.SysUser;
import com.itljm.cxrMarket.entity.dto.HomeCountDataDTO;
import com.itljm.cxrMarket.entity.dto.MerchantRegisterDTO;
import com.itljm.cxrMarket.entity.dto.UserLoginDTO;

import java.util.List;
import java.util.Map;

public interface SysUserService {
    List<SysUser> selectUserPage(Page<SysUser> page, Wrapper<SysUser> entityWrapper);

    Map<String, Object> login(SysUser u);
    SysUser wxLogin(UserLoginDTO u);

    String getPhoneNumber(String code);
    SysUser selectByUserName(String userName);

    SysUser selectById(Long id);

    SysUser selectIdByName(String name);

    boolean updateById(SysUser sysUser);

    boolean insert(SysUser sysUser);

    int deleteBatch(Long[] ids);

    boolean updatePassword(SysUser sysUser);

    boolean register(MerchantRegisterDTO entity);
    HomeCountDataDTO getHomeCountData();
    boolean deleteById(Long id);
}
